package com.chezai.client.bean;

/**
 * 下载进度
 * Created by likunyang on 2017/9/6.
 */

public class DownloadProgress {
    public static final int STATE_LOADING = 1;//正在下载
    public static final int STATE_FAILE = 2;//下载失败
    public static final int STATE_SUCESS = 3;//下载成功
    public static final int STATE_CANCEL = 4;//下载取消
    public static final int STATE_FINISH = 5;//任务完成
    public static final int STATE_START = 6;//任务完成
    public long total;//总的大小
    public long current;//当前大小
    public int state;//下载状态
    public String filePath;

    public DownloadProgress(long total, long current, int state) {
        this.total = total;
        this.current = current;
        this.state = state;
    }
}
